//载入那些函数库
let includes = ([
    "include/common.js",
]);
//继承哪些JS 在所有代码之前要完成继承
let inherits = ([
    "inherit/data.js",
    "inherit/char.js",
    "inherit/skill.js",
]);


function testx() {
    os.debug(__dir__);
}


//被创建的时候触发
function create() {
    let me = thisObject();
    me.set("name", "clone体User");
    //是否是玩家
    me.set("obType", "isPlayer");
    //存储时的对应的表名
    me.set("dtable", "user");
    me.set("heartbeat", 1);
    me.set("hp", {
        hp: 0,
        //装备技能后的加成
        applySkill: 0,
    });

    //境界
    me.set("jingjie", 10);

    //
    me.set("attack", {
        //自带的攻击
        attack: 20,
        //装备技能后的加成
        applySkill: 0,
    });


    //回合制使用的技能
    me.set("rdSkills", [
        100001, 100002
    ]);

    //临时属性
    me.setTemp("attack", {
        //使用技能时
        applySkill: 0,
        //使用回合制技能时
        applyRdSkill: 0,
    });

    return me;
}


function kill() {
    let me = thisObject();
    os.debug("killfunc....." + me.get("name"), "测试自有的me属性");

    return {x: "asdasd"};
}


function heartbeat() {


    return {};
}

